package com.acminds.fotoporter.persistence.entities;

// Generated Jan 14, 2012 10:31:36 AM by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.acminds.fotoporter.persistence.dto.*;

/**
 * ItemFeature generated by customhbm2java
 */
@MappedSuperclass
public abstract class AbstractItemFeature extends
		com.acminds.fotoporter.persistence.BaseDTO implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer itemFeatureId;
	private Feature feature;
	private Item item;
	private int status;
	private BigDecimal featurePrice;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ITEM_FEATURE_ID", unique = true, nullable = false)
	public Integer getItemFeatureId() {
		return this.itemFeatureId;
	}

	public void setItemFeatureId(Integer itemFeatureId) {
		this.itemFeatureId = itemFeatureId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FEATURE_ID", nullable = false)
	public Feature getFeature() {
		return this.feature;
	}

	public void setFeature(Feature feature) {
		this.feature = feature;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ITEM_ID")
	public Item getItem() {
		return this.item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	@Column(name = "STATUS", nullable = false)
	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(name = "FEATURE_PRICE", precision = 8)
	public BigDecimal getFeaturePrice() {
		return this.featurePrice;
	}

	public void setFeaturePrice(BigDecimal featurePrice) {
		this.featurePrice = featurePrice;
	}

}
